package com.xblibo.xruth.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.xblibo.xruth.common.BaseEntity;
import com.xblibo.xruth.common.CommonEnum.AgeGroup;
import com.xblibo.xruth.common.CommonEnum.Gender;
import com.xblibo.xruth.common.CommonEnum.IntoType;
import com.xblibo.xruth.common.CommonEnum.NewOrOld;
import com.xblibo.xruth.common.CommonEnum.Result;

/**
 * <p>Title: Shopper.java </p>
 * <p>Description:  </p>
 * <p>Copyright: 易宝 2011*版权所有 </p>
 * <p>Company: yeepay </p>
 * @author xblibo
 * @version 1.0 ,  2011  上午09:32:41
 */
@Entity
@Table(name="shopper")
public class Shopper extends BaseEntity{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 进店时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	private Date enterDate;
	
	/**
	 * 进店人数
	 */
	@Column(name = "enterCount") 
	private Integer enterCount=0;
	
	/**
	 * 试穿人数
	 */
	@Column(name = "tryonCount") 
	private Integer tryonCount=0;
	
	/**
	 * 成交人数
	 */
	@Column(name = "tradeCount") 
	private Integer tradeCount=0;
	
	/**
	 * 成交金额
	 */
	@Column(name = "tradeAmount") 
	private Double tradeAmount=0.0;
	
	/**
	 * 主接待员
	 */
	@Column(name = "receptionistId") 
	private Integer receptionistId;
	
	/**
	 * 协助人员
	 */
	@Column(name = "assistorId") 
	private Integer assistorId;
	
	/**
	 * 进店类型   经营性进店 | 自然性进店
	 */
	@Enumerated(value = EnumType.STRING) 
	@Column(name = "intoType") 
	private IntoType intoType;
	
	/**
	 * 顾客类型  新顾客 | 老顾客
	 */
	@Enumerated(value = EnumType.STRING) 
	@Column(name = "newOrOld") 
	private NewOrOld newOrOld;
	
	/**
	 * 进店顾客结果
	 */
	@Enumerated(value = EnumType.STRING) 
	@Column(name = "result") 
	private Result result;
	
	/**
	 * 进店顾客结果的原因
	 */
	@Column(name="reason")
	private String reason;
	
	/**
	 * 进店顾客姓名
	 */
	@Column(name = "name") 
	private String name;
	
	/**
	 * 进店顾客电话
	 */
	@Column(name = "phone") 
	private String phone;
	
	/**
	 * 进店顾客地址
	 */
	@Column(name = "address") 
	private String address;
	
	
	/**
	 * 进店顾客性别
	 */
	@Enumerated(value = EnumType.STRING) 
	@Column(name = "gender") 
	private Gender gender;
	
	/**
	 * 进店顾客所属年龄段
	 */
	@Enumerated(value = EnumType.STRING) 
	@Column(name = "ageGroup") 
	private AgeGroup ageGroup;

	public Integer getEnterCount() {
		return enterCount;
	}

	public void setEnterCount(Integer enterCount) {
		this.enterCount = enterCount;
	}

	public Integer getTryonCount() {
		return tryonCount == null ? 0 : tryonCount;
	}

	public void setTryonCount(Integer tryonCount) {
		this.tryonCount = tryonCount;
	}

	public Integer getTradeCount() {
		return tradeCount == null ? 0 : tradeCount;
	}

	public void setTradeCount(Integer tradeCount) {
		this.tradeCount = tradeCount;
	}

	public Double getTradeAmount() {
		return tradeAmount == null ? 0 : tradeAmount;
	}

	public void setTradeAmount(Double tradeAmount) {
		this.tradeAmount = tradeAmount;
	}

	public Integer getReceptionistId() {
		return receptionistId;
	}

	public void setReceptionistId(Integer receptionistId) {
		this.receptionistId = receptionistId;
	}

	public Integer getAssistorId() {
		return assistorId;
	}

	public void setAssistorId(Integer assistorId) {
		this.assistorId = assistorId;
	}

	public IntoType getIntoType() {
		return intoType;
	}

	public void setIntoType(IntoType intoType) {
		this.intoType = intoType;
	}

	public NewOrOld getNewOrOld() {
		return newOrOld;
	}

	public void setNewOrOld(NewOrOld newOrOld) {
		this.newOrOld = newOrOld;
	}

	public Result getResult() {
		return result;
	}

	public void setResult(Result result) {
		this.result = result;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Gender getGender() {
		return gender;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}

	public AgeGroup getAgeGroup() {
		return ageGroup;
	}

	public void setAgeGroup(AgeGroup ageGroup) {
		this.ageGroup = ageGroup;
	}

	public Date getEnterDate() {
		return enterDate;
	}

	public void setEnterDate(Date enterDate) {
		this.enterDate = enterDate;
	}
	
	
}
